package com.woniuxy.micropermissionserver.adminmanage.mapper;

import com.woniuxy.microcommonserver.bean.permission_hcz.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface AdminMapper {

    void addAdmin(@Param("a") Admin admin);

    void batchSaveAdminRole(@Param("adminId") Integer adminId, @Param("roleIds") List<Integer> roleIds);

    Admin findById(Integer id);

    Admin loginByName(String loginName);

    List<Admin> findByParams(Admin admin);
}
